<%@ page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<div class="box">
  <h2>Liste des transactions</h2>
  <div class="box-content">
    <form method="post" action="#">
      <table cellspacing="0" cellpadding="0" id="list-of-gtransactions" class="dataview">
        <thead>
          <tr>
            <td><a href="#sort">Compte du Site</a></td>
            <td><a href="#sort">Utilisateur</a></td>
            <td><a href="#sort">Libellé</a></td>
            <td><a href="#sort title="Date opération">Date de l'opération</a></td>
            <td><a href="#sort">Débit</a></td>
            <td><a href="#sort">Crédit</a></td>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <td colspan="6">
              <ul class="list-of-actions">
                <li>&nbsp;</li>
              </ul>
            </td>
          </tr>
        </tfoot>
        <tbody>
          <c:forEach items="${transactions}" var="t">
            <tr>
              <td><c:out value="${t.siteAccount.name}"/></td>
              <td><c:out value="${t.user.login}"/></td>
              <td><c:out value="${t.label}"/></td>
              <td><c:out value="${t.dateOfOperationFormatted}"/></td>
              <td><c:out value="${t.debitFormatted}"/></td>
              <td><c:out value="${t.creditFormatted}"/></td>
            </tr>
          </c:forEach>
        </tbody>
      </table>
    </form>
  </div>
</div>